WP_Defender\Component\IP\Global_IP B

Total Complexity 90
Dependencies 7
Dependents 8
Total lines 562
Lines of code 316
Logical lines of code 150
Comment lines 132
Methods 25
Properties 5

Methods 25

Method Rating Maintainability Complexity Lines of code
set_global_ip_list()
A
43 13 52
fetch_global_ip_list()
A
46 11 43
get_formated_global_ip_list()
A
52 10 23
is_show_dashboard_notice()
A
53 9 23
remove_from_blocklist()
A
46 7 40
add_to_global_ip_list()
S
49 6 32
format_number()
S
59 6 14
log_event()
S
53 4 22
can_blocklist_autosync()
S
71 4 6
can_central_ip_autosync()
S
74 3 5
is_active()
S
79 2 3
init()
S
69 2 6
is_ip_allowed()
S
79 1 3
get_last_synced()
S
79 1 3
set_last_synced()
S
79 1 3
allow_list()
S
82 1 3
block_list()
S
82 1 3
get_dashboard_notice_reminder()
S
79 1 3
delete_dashboard_notice_reminder()
S
81 1 3
is_ip_blocked()
S
79 1 3
fetch_global_ip_list_updated_time()
S
67 1 9
is_global_ip_enabled()
S
82 1 3
is_blocklist_autosync_enabled()
S
82 1 3
get_global_ip_list()
S
80 1 3
__construct()
S
73 1 5